#ifndef __DRIVER_RAMDISK_H
#define __DRIVER_RAMDISK_H

#include <lib/type.h>
#include <lib/stddef.h>

#define DEVICE_NAME "ram0"

#define DRIVER_NAME "virtual-ramdisk"
#define DRIVER_VER "0.1"

// ram disk sector size (10MB)
#define RAMDISK_SECTOR (10240 * 2)

typedef struct device_extension
{
    device_object_t *device;
    uint8_t *buffer;  // buffer
    uint64_t len;     // buffer length
    uint64_t sectors; // buffer sectors
    uint64_t rwoff;   // buffer offset
} device_extension_t;

#endif